package cn.xspace.wnx.entity;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/10/18 0018.
 */
public class NoticeOrWNXmain implements Serializable {
    private int userId;
    private String img;
    private String src;
    private String summary;
    private String title;
    private String platForm;
    private String bizCode;
    private String logo;
    private String senderId;
    private String senderName;
    private String senderPhone;
    private String sendTime;
    private String sendDeptId;
    private String sendDeptName;
    private String msgId;
    private String msgLogo;
    private String msgSequenceId;
    private String msgType;
    private String msgChannel;
    private int num;
    public String inserttime = "";//插入时间
    public int msg_warn_status=WarnStatus.WARN.toNumber();
    public int unCount;//未读数量
    public boolean isRead = false;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getPlatForm() {
        return platForm;
    }

    public void setPlatForm(String platForm) {
        this.platForm = platForm;
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public String getMsgSequenceId() {
        return msgSequenceId;
    }

    public void setMsgSequenceId(String msgSequenceId) {
        this.msgSequenceId = msgSequenceId;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsgChannel() {
        return msgChannel;
    }

    public void setMsgChannel(String msgChannel) {
        this.msgChannel = msgChannel;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getSenderPhone() {
        return senderPhone;
    }

    public void setSenderPhone(String senderPhone) {
        this.senderPhone = senderPhone;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public enum WarnStatus {
        WARN(0),
        NOT_WARN(1);
        private int INum = 0;

        /* 构造器，记住喇，必须是私有的~ */
        private WarnStatus(int iNum) {
            this.INum = iNum;
        }

        /* 用这个方法代替ordinal()方法，安全，专业，包退包换~ */
        public int toNumber() {
            return this.INum;
        }
    }

    @Override
    public String toString() {
        return "NoticeOrWNXmain{" +
                "userId=" + userId +
                ", img='" + img + '\'' +
                ", src='" + src + '\'' +
                ", summary='" + summary + '\'' +
                ", title='" + title + '\'' +
                ", platForm='" + platForm + '\'' +
                ", bizCode='" + bizCode + '\'' +
                ", logo='" + logo + '\'' +
                ", senderId='" + senderId + '\'' +
                ", senderName='" + senderName + '\'' +
                ", senderPhone='" + senderPhone + '\'' +
                ", sendTime='" + sendTime + '\'' +
                ", sendDeptId='" + sendDeptId + '\'' +
                ", sendDeptName='" + sendDeptName + '\'' +
                ", msgId='" + msgId + '\'' +
                ", msgLogo='" + msgLogo + '\'' +
                ", msgSequenceId='" + msgSequenceId + '\'' +
                ", msgType='" + msgType + '\'' +
                ", msgChannel='" + msgChannel + '\'' +
                ", num=" + num +
                ", msg_warn_status=" + msg_warn_status +
                ", unCount=" + unCount +
                ", isRead=" + isRead +
                '}';
    }

    public int getUnCount() {
        return unCount;
    }

    public void setUnCount(int unCount) {
        this.unCount = unCount;
    }

    public String getInserttime() {
        return inserttime;
    }

    public void setInserttime(String inserttime) {
        this.inserttime = inserttime;
    }

    public int getMsg_warn_status() {
        return msg_warn_status;
    }

    public void setMsg_warn_status(int msg_warn_status) {
        this.msg_warn_status = msg_warn_status;
    }




    public String getMsgLogo() {
        return msgLogo;
    }

    public void setMsgLogo(String msgLogo) {
        this.msgLogo = msgLogo;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getSendDeptId() {
        return sendDeptId;
    }

    public void setSendDeptId(String sendDeptId) {
        this.sendDeptId = sendDeptId;
    }

    public String getSendDeptName() {
        return sendDeptName;
    }

    public void setSendDeptName(String sendDeptName) {
        this.sendDeptName = sendDeptName;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

}
